package com.fengniu.ejb.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "User2SiteTable", schema = "FENGNIU", uniqueConstraints = {})
public class User2Site extends GeneRelation implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 7640974489729390175L;

	@ManyToOne
	User user;

	@ManyToOne
	Site site;

	// You can add optimistic locking capability to an entity bean using the
	// @Version annotation:
	// @Version
	// @Column(name = "OPTLOCK")
	// private Integer version;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Site getSite() {
		return site;
	}

	public void setSite(Site site) {
		this.site = site;
	}

}
